package com.eneat.smartrule.model;

import com.eneat.smartrule.enums.ArithmeticOperatorEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArithmeticExpression {
    @Schema(description = "算术操作符，例如 + 或 -，可以为null表示第一个操作数")
    private ArithmeticOperatorEnum arithmeticOperator;
    @Schema(description = "操作数，例如 A 或 B")
    private String operand;

    public ArithmeticExpression(String operand) {
        this.arithmeticOperator = null;
        this.operand = operand;
    }
}

